<?php

class Article extends Epic_Db_Data_Abstract
{
    protected $_nameTable = 'blog_articles'; 
    protected $_idFieldName = 'article_id';
    
    public function save(array $data = array())
    {
    	if (!isset($data['article_id']))
    		$data['created_time'] = date('Y-m-d h:i:s', time());
    	
    	$data['content_short'] = strip_tags($data['content_short']);
    	
		parent::save($data);
    }
}